﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.Product;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IProductTypeService
    {
        ProductType LoadByID(long id);
        ProductType LoadByName(string productName);
        bool IsExist(string productName, long id = 0);
        /// <summary>
        /// 获得所有配件类型的型号
        /// </summary>
        /// <param name="productTypeId">获得该品牌下所有的配件类型的型号</param>
        /// <returns></returns>
        IQueryable<ProductType> GetProductType(long productTypeId = -1);
        IQueryable<ProductType> GetPagingList(ProductTypeModel model, out int total);
    }
}
